package com.dq.service.orders.impl;

import java.util.List;

import com.dq.mapper.MemberMapper;
import com.dq.service.orders.IMemberService;
import com.dq.test.Member;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * App用户Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-08-05
 */
@Service
public class MemberServiceImpl implements IMemberService
{
    @Autowired
    private MemberMapper memberMapper;

    /**
     * 查询App用户
     * 
     * @param heatId App用户ID
     * @return App用户
     */
    @Override
    public Member selectMemberById(Long heatId)
    {
        return memberMapper.selectMemberById(heatId);
    }

    /**
     * 查询App用户列表
     * 
     * @param member App用户
     * @return App用户
     */
    @Override
    public List<Member> selectMemberList(Member member)
    {
        return memberMapper.selectMemberList(member);
    }

    /**
     * 新增App用户
     * 
     * @param member App用户
     * @return 结果
     */
    @Override
    public int insertMember(Member member)
    {
        return memberMapper.insertMember(member);
    }

    /**
     * 修改App用户
     * 
     * @param member App用户
     * @return 结果
     */
    @Override
    public int updateMember(Member member)
    {
        return memberMapper.updateMember(member);
    }



    /**
     * 删除App用户信息
     * 
     * @param heatId App用户ID
     * @return 结果
     */
    @Override
    public int deleteMemberById(Long heatId)
    {
        return memberMapper.deleteMemberById(heatId);
    }
}
